package com.example.lottery_system.service.dto;

import com.example.lottery_system.service.enums.ActivityStatus;
import lombok.Data;

@Data
public class ActivityDTO {
    private Long activityId;
    private String activityName;
    private String description;
    private ActivityStatus status;
    /**
     * 活动是否有效
     */
    public Boolean valid() {
        return status.equals(ActivityStatus.RUNNING);
    }
}
